import { BaseEntity } from '@cool-midway/core';
import { Column, Entity, Index } from 'typeorm';

/**
 * loginlist模块-登陆信息
 */
@Entity('loginlist_info_bind')
export class LoginlistInfoBind extends BaseEntity {
  @Index()
  @Column({ comment: '创建时间', length: 50 })
  createTime: Date;

  @Index()
  @Column({ comment: '更新时间', length: 50 })
  updateTime: Date;

  @Column({ comment: '登陆码', default: 0 })
  loginCode: string;

  @Column({ comment: '类型 0-主播 1-相册', default: 0, type: 'tinyint' })
  type: number;

  @Column({ comment: '绑定的id', nullable: true })
  bindId: string;
  
}
